!{include file='common/iheader.htm'}
<div id="i_nav">
	<h3 class="page_title">网站管理</h3>
	<a class="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" href="/admin.php?app=site&act=edit"><span class="ui-icon ui-icon-document"></span>新建网站</a>
</div>
<table class="list_table">
	<tr>
		<th>网站名称</th>
		<th>状态</th>
		<th>到期时间</th>
		<th>主域名</th>
		<th>操作</th>
	</tr>
	!{foreach from=$site_list item=site}
	<tr>
		<td><a href="http://!{$site.domain}" target="_blank">!{$site.name}</a></td>
		<td>!{$site.status}</td>
		<td>!{$site.expired_time|date}</td>
		<td>!{$site.domain}</td>
		<td>
			<a href="/admin.php?app=site&act=acl&id=!{$site._id}">设置权限</a>
			<a href="http://!{$site.domain}/manager.php?ticket=!{$ticket}" target="_blank">网站管理</a>
			<a href="http://!{$site.domain}" target="_blank">网站预览</a>
		</td>
	</tr>
	!{foreachelse}
	<tr>
		<td colspan="4">暂无记录！</td>
	</tr>
	!{/foreach}
</table>
<div class="option_div">
	<div class="pager">
	!{include file='common/pager.htm'}
	</div>
</div>
!{include file='common/ifooter.htm'}